package com.yjd.comm.fundservice.enums;

/**
 * 贷款申请状态
 * Created by yangchangyan on 2018/1/29.
 */
public enum LoanApplyStatusEnum {
    INIT(0, "待处理"),
    APPLYING(1, "申请中"),
    REFUSE(2, "审核拒绝"),
    REPAYMENTS(3, "审核通过"),
    FINISH(4, "订单完成");

    private int code;
    private String desc;

    private LoanApplyStatusEnum(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public static LoanApplyStatusEnum parse(int code) {
        for (LoanApplyStatusEnum v : LoanApplyStatusEnum.values()) {
            if (v.getCode()==code) {
                return v;
            }
        }
        return null;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
